package com.example.leetcode.search;

import com.example.leetcode.search.comon.SearchUtils;

class Solution240 {
    public boolean searchMatrix(int[][] matrix, int target) {
        return SearchUtils.searchMatrixII(matrix, target);
    }
}

public class leetcode240 {
    public static void main(String[] args) {
        Solution240 solution240 = new Solution240();
        int[][] matrix = {
                {1, 4, 7, 11, 15},
                {2, 5, 8, 12, 19},
                {3, 6, 9, 16, 22},
                {10, 13, 14, 17, 24},
                {18, 21, 23, 26, 30}
        };
        System.out.println(solution240.searchMatrix(matrix, 5));
    }
}
